package com.iflytek.dao;

import com.iflytek.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    //查询所有Role
    @Select("select * from role_tb")
    List<Role> queryAllRoles ();
    //根据ID查询Role对象
    //@Select("select * from role_tb where id=#{id}")
    Role queryRoleById(int id);
    //新增一个Role
    void addRole(Role role);
    //根据Id删除Role对象
    void deleteRoleById(int id);
    //根据Id修改一个Role对象
    void updateRoleId(Role role);

}
